import 'package:json_annotation/json_annotation.dart'; 
  
part 'entity.g.dart';


List<Entity> getEntityList(List<dynamic> list){
    List<Entity> result = [];
    list.forEach((item){
      result.add(Entity.fromJson(item));
    });
    return result;
  }
@JsonSerializable()
  class Entity extends Object with _$EntitySerializerMixin{

  @JsonKey(name: 'name')
  String name;

  Entity(this.name,);

  factory Entity.fromJson(Map<String, dynamic> srcJson) => _$EntityFromJson(srcJson);

}

  
